package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.message.jt808.extend.AddLocation;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author shuiyun
 * @program device-simulator
 * @description 定位批量上传
 * @date 2022-05-05 22:52
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Message(value = JT808.定位数据批量上传0x0704)
public class T0704 extends JTMessage {

    @FieldValue(type = DataType.WORD,desc = "数据项个数")
    private Integer size;

    @FieldValue(type = DataType.BYTE,desc = "位置类型")
    private Integer type;

    @FieldValue(type = DataType.LIST,desc = "位置汇报数据项")
    private List<AddLocation> addLocationList;
}
